<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="author" content="wangbo">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>渐变</title>
  <style>
    /* 颜色不同，有层级感 */
    /* div{width: 200px;height: 200px;background-color: #f0f} */
    /* 渐变是背景图片，默认从上到下 */
    /* div{width: 200px;height: 200px;background-image:linear-gradient(#ff0,#f00)} */
    /* 多个渐变,加更多颜色 */
    /* div{width: 200px;height: 200px;background-image:linear-gradient(#f00,#0f0,#00f,#0ff)} */
    /* left right top bottom */
    /* div{width: 200px;height: 200px;background-image:linear-gradient(to right, #f00,#0f0,#00f,#0ff)} */
    /* div{width: 200px;height: 200px;background-image:linear-gradient(to right bottom, #f00,#0f0,#00f,#0ff)}*/
    /* 45,90 , */
    div{width: 200px;height: 200px;background-image:linear-gradient(90deg, #f00,#0f0,#00f,#0ff)}
  </style>
</head>
<body>
  <!-- 格瑞 地恩斯 -->
  <div>

  </div>
</body>
</html>